﻿@using GoodMan.Infrastructure.Entities.Entity;
@{
    Layout = "~/Views/Shared/_Main.cshtml";
    ItemListBox<Product> list = ViewBag.PackagesProducts;
}
<div class="container">
    <!--#主菜单-->
    <ul class="breadcrumb">
        <li><a href="/home/index">首页</a> <span class="divider">/</span></li>
        <li class="active">套餐列表</li>
    </ul>
    <!--//////////////////////////////////////////////////////////////////////////////////-->
    <div class="row">
        <div class="span9" style="width: 96%">           
            <!--//////////////////////////////////////////////////////////////////////////////////-->
            <div class="row-fluid product-x2">
                <!--商品列表-->
                @{
                    if (list != null && list.Data != null && list.Data.Count != 0)
                    {
                        foreach (var item in list.Data)
                        {
                <div class="product">
                    <a href="/shop/PackagesProductsDetail?id=@item.Id">
                        <img src="@item.Images" style="width:140px;height:93px;" alt="@item.ProductName" title="@item.ProductName" /></a>
                    <div class="p-name">
                        <a href="/shop/PackagesProductsDetail?id=@item.Id" title="@item.ProductName">@item.ProductName</a><br />
                        价格： <span class="yen">&yen;</span><span class="price">@item.DefaulSalePrice</span>
                    </div>
                </div>
                        }
               
                    }else{
                     <div style="margin-left:80px; margin-top:80px"><p style="vertical-align:middle">
                <b style="font-size: 20px; color: Green">没有相关数据！</b></p></div>
                    }
                    }
                <!--#商品列表-->
            </div>
            <!--分页-->
            <div class="pagination text-right">
                <hr />
                @Html.Raw(list.PageItemSegment)
            </div>
            <!--#分页-->
        </div>
    </div>
</div>
